package com.core.family.admin.domain.po;

import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

/**
 * @author honglei
 * @version 1.0
 * @time: 2023-6-14 17:05:09
 * @Description PO对象 支付流水
 */

@Data
@TableName(value = "sys_finance")
public class SysFinance implements Serializable {


    /*
     *
     */
    @TableField(value = "id")
    private Integer id;

    /*
     *
     */
    @TableField(value = "org_id")
    private Integer orgId;

    /*
     *  用户id
     */
    @TableField(value = "user_id")
    private Integer userId;

    /*
     *  用户名
     */

    @TableField(value = "user_name")
    private String userName;

    /*
     *  收入、支出、退款、充值、划拨、保证金、转账收入、转账支出，提现
     */

    @TableField(value = "type")
    private String type;

    /*
     *  关联订单id
     */
    @TableField(value = "order_id")
    private Integer orderId;

    /*
     *  金额
     */
    @TableField(value = "price")
    private BigDecimal price;

    /*
     *  余额
     */

    @TableField(value = "balance")
    private String balance;

    /*
     *  支付方式：微信支付宝现金银联
     */

    @TableField(value = "pay_type")
    private String payType;

    /*
     *  支付时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "pay_time")
    private Date payTime;

    /*
     *  付款方名称
     */

    @TableField(value = "pay_name")
    private String payName;

    /*
     *  支付流水
     */
    @TableField(value = "pay_no")
    private Integer payNo;

    /*
     *  支付序列号(第三方流水)
     */

    @TableField(value = "pay_sn")
    private String paySn;

    /*
     *
     */

    @TableField(value = "status")
    private String status;

    /*
     *
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "create_time")
    private Date createTime;

    /*
     *
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "update_time")
    private Date updateTime;

    /*
     *
     */

    @TableField(value = "audit_status")
    private String auditStatus;

}
